package com.iotechn.unimall.admin.api.cmsRotation;
import com.iotechn.unimall.core.Const;
import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.CmsRotationDO;
import com.iotechn.unimall.data.model.Page;
import java.util.List;
import java.util.Map;

/**
 * 新闻轮播图表
 *
 * @author chen
 * @email 
 * @date 2020-06-08 14:52:04
 */
@HttpOpenApi(group = "admin.cmsrotation", description = "")
public interface CmsRotationService{

    @HttpMethod(description = "列表", permission = "cms:cmsrotation:page", permissionParentName = "损耗管理", permissionName = "损耗记录列表")
    public Page<CmsRotationDO> page(
            @HttpParam(name = "status", type = HttpParamType.COMMON, description = "轮播图状态") Integer status,
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "创建", permission = "cms:cmsrotation:create", permissionParentName = "损耗记录列表", permissionName = "创建")
    public CmsRotationDO create(
            @NotNull @HttpParam(name = "cmsRotationDO", type = HttpParamType.COMMON, description = "") CmsRotationDO cmsRotationDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "修改", permission = "cms:cmsrotation:update", permissionParentName = "损耗记录列表", permissionName = "修改")
    public String update(
            @NotNull @HttpParam(name = "cmsRotationDO", type = HttpParamType.COMMON, description = "") CmsRotationDO cmsRotationDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "删除", permission = "cms:cmsrotation:delete", permissionParentName = "损耗记录列表", permissionName = "删除")
    public String delete(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "删除Id") Long id,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "详情", permission = "cms:cmsrotation:detail", permissionParentName = "损耗记录列表", permissionName = "详情")
    public CmsRotationDO detail(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "Id") Long id,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;
}

